﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Results.aspx.cs" Inherits="cognysClient.Admin.WebForm5" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <div id="divMain" class="divMain" runat="server">
            <div id="divContent">
                <div id="divSearch">
                    Sök efter person <br/>
                    <asp:TextBox ID="tbxName" CssClass="tbxName" OnTextChanged="txtChanged" runat="server" AutoPostBack="true" ValidationGroup="searchUser"></asp:TextBox>
                
                    <asp:ListBox ID="lbName" CssClass="lbName" runat="server" OnSelectedIndexChanged="selectedPerson" AutoPostBack="true"></asp:ListBox>
                    <br/><br/><br/>
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server"  
                         ValidationGroup="searchUser"/>
                    
                     <asp:RegularExpressionValidator id="RegularExpressionValidator5" runat="server" 
        ErrorMessage="Felaktigt namn" 
        ValidationExpression="^([\S\s]{0,50})$" 
        ControlToValidate="tbxName" 
        ValidationGroup="searchUser"/>
                </div>
                <div runat="server" id="divResult" class="menu divResult">
                   <div runat="server" id="divMiniMenu" class="divMiniMenu">
                    <ul>
                        <li><a id="linkMemory">Memory</a></li>
                        <li><a id="linkStroop">Stroop effect</a></li>
                        <li><a id="linkTmt">Trail making Test</a></li>
                        <li><a id="linkQor">QoR</a></li>
                        <li><a id="linkPric">Pric</a></li>
                    </ul>
                       </div>
                

            <div id="divMemoryResult">
                <h1>Memory </h1> 
                <div class="divAvg">
                Personens Baseline: <%= getMemoryBaseLine() %> <br/><br/>
                Medelvärde för alla personer: <%= getMemoryAvg() %><br/>
                Högsta registrerade resultat: <%= getMemoryTop() %>
                </div>                                                                  
                    <div class="divGrid">
                    <asp:GridView ID="GridMemory" runat="server" AutoGenerateColumns="False" 
                        GridLines="None"  
                        CssClass="mGrid"  
                        PagerStyle-CssClass="pgr"  
                        AlternatingRowStyle-CssClass="alt">
                        <Columns>
                            <asp:BoundField DataField="regDate" HeaderText="Datum" ReadOnly="True"   
                                        SortExpression="regDate" />  
                             <asp:BoundField DataField="score" HeaderText="Poäng" ReadOnly="True"   
                                        SortExpression="score" />  
                        </Columns>
                    </asp:GridView>
                        </div>
                </div>   

                <div id="divTMTResult">
                   <h1>Trail Making Test</h1>
                    <div class="divAvg">
                    Personens Baseline: <%= getTMTBaseLine() %> <br/><br/>
                    Medelvärde för alla personer: <%= getTMTAvg() %><br/>
                    Högsta registrerade resultat:  <%= getTMTTop() %>
                    </div>
                    <div class="divGrid">
                     <asp:GridView ID="GridTMT" runat="server" AutoGenerateColumns="False" 
                        GridLines="None"  
                        CssClass="mGrid"  
                        PagerStyle-CssClass="pgr"  
                        AlternatingRowStyle-CssClass="alt">
                        <Columns>
                            <asp:BoundField DataField="regDate" HeaderText="Datum" ReadOnly="True"   
                                        SortExpression="regDate" />  
                             <asp:BoundField DataField="compTime" HeaderText="Tid" ReadOnly="True"   
                                        SortExpression="compTime" />  
                            <asp:BoundField DataField="Error" HeaderText="Antal fel" ReadOnly="True"   
                                        SortExpression="Error" />  
                            <asp:BoundField DataField="score" HeaderText="Poäng" ReadOnly="True"   
                                        SortExpression="score" />  
                        </Columns>
                    </asp:GridView>
                        </div>
                </div>
                
                <div id="divStroopResult">
                    <h1>Stroop Effect Test</h1>
                   <div class="divAvg">
                        Personens Baseline: <%= getStroopBaseLine() %> <br/><br/>
                        Medelvärde för alla personer: <%= getStroopAvg() %><br/>
                        Högsta registrerade resultat: <%= getStroopTop() %>
                   </div>
                    
                    <div class="divGrid">
                    <asp:GridView ID="GridStroop" runat="server" AutoGenerateColumns="False" 
                        GridLines="None"  
                        CssClass="mGrid"  
                        PagerStyle-CssClass="pgr"  
                        AlternatingRowStyle-CssClass="alt">
                        <Columns>
                            <asp:BoundField DataField="regDate" HeaderText="Datum" ReadOnly="True"   
                                        SortExpression="regDate" />  
                            <asp:BoundField DataField="Error" HeaderText="Antal fel" ReadOnly="True"   
                                        SortExpression="Error" />  
                            <asp:BoundField DataField="score" HeaderText="Poäng" ReadOnly="True"   
                                        SortExpression="score" />  
                        </Columns>
                    </asp:GridView>
                        </div>
                </div>
                
                <div id="divPricResult" runat="server" class="divPricResult">
                    <h1>PRiC</h1>
                    <div class="divGrid">
                        <fieldset>
            <legend>Registrerade formulär</legend>
            
            <asp:DropDownList ID="ddlDatePickerPRiC" runat="server" AppendDataBoundItems="true" OnSelectedIndexChanged="ddlDatePickerPRiC_SelectedIndexChanged" AutoPostBack="true" >
            </asp:DropDownList>
        </fieldset>
                        <div id="divPric" runat="server" class="divPric">
                        <fieldset>
            
            <legend>Svarsresultat</legend>
            <div>
                <asp:Label ID="lblAveragePricAnswer" runat="server">Genomsnittligt svar:</asp:Label>
                <asp:Label ID="lblAveragePric" runat="server"></asp:Label><br/>
                <asp:Label ID="lblTotalPointsPric" runat="server">Total svarssumma:</asp:Label>
                <asp:Label ID="lblTotalPric" runat="server"></asp:Label>
            </div>
            <div>
                
                <asp:GridView ID="GridPric" runat="server" GridLines="None"  
                        AutoGenerateColumns="False" 
                        CssClass="mGrid"  
                        PagerStyle-CssClass="pgr"  
                        AlternatingRowStyle-CssClass="alt">
                    <Columns>
                            <asp:BoundField DataField="Key" HeaderText="Fråga" ReadOnly="True"   
                                        SortExpression="Key" />  
                             <asp:BoundField DataField="Value" HeaderText="Svar" ReadOnly="True"   
                                        SortExpression="Value" />  
                        </Columns>
                    
                </asp:GridView>
                   
            </div>
            
            
        </fieldset>   
</div>
                    </div>

                </div>
                
                <div runat="server" id="divQorResult" class="divQorResult" >
                    <h1>QoR</h1>
                    <div class="divQorGrid">
                     <fieldset>
            <legend>Registrerade formulär</legend>
              
            <asp:DropDownList ID="ddlDatePickerQoR" runat="server" OnSelectedIndexChanged="ddlDatePickerQoR_SelectedIndexChanged" AppendDataBoundItems="true" AutoPostBack="true" >
            </asp:DropDownList>
        </fieldset>
                        <div runat="server" id="divQorGrid" class="divQorGridClass">
        <fieldset>
            
            <legend>Svarsresultat</legend>
            <div id="info-form">
                <asp:Label ID="lblAverageAnswer" runat="server">Genomsnittligt svar:</asp:Label>
                <asp:Label ID="lblAverage" runat="server"></asp:Label><br/>
                <asp:Label ID="lblTotalPoints" runat="server">Total svarssumma:</asp:Label>
                <asp:Label ID="lblTotal" runat="server"></asp:Label>
            </div>
            <div id="info-answers">
                
                <asp:GridView ID="gridQor" runat="server" GridLines="None" 
                     AutoGenerateColumns="False" 
                        CssClass="mGrid"  
                        PagerStyle-CssClass="pgr"  
                        AlternatingRowStyle-CssClass="alt">
                    <Columns>
                            <asp:BoundField DataField="Key" HeaderText="Fråga" ReadOnly="True"   
                                        SortExpression="Key" />  
                             <asp:BoundField DataField="Value" HeaderText="Svar" ReadOnly="True"   
                                        SortExpression="Value" />  
                        </Columns>
                    
                </asp:GridView>
            </div>
            
            
        </fieldset>   
                        
                    
                             </div>  
                    </div>
                    
                </div>
                    
                    </div>
                
           </div> 
            
    </div>
    
</asp:Content>
